package com.server.thisService.common;

import com.server.thisService.common.enums.ExceptionCode;

public class ExceptionCommon extends Exception {

    private String code;

    public String getCode() {
        return code;
    }

    public ExceptionCommon(String code, String message){
        super(message);
        this.code = code;
    }


    public ExceptionCommon(ExceptionCode ex){
        super(ex.getMessage());
        this.code = ex.getCode();
    }
}
